//
//  TempCity.m
//  06集合遍历和数组排序HomeWork
//
//  Created by dllo on 16/7/11.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "TempCity.h"

@implementation TempCity
- (instancetype)initWithName:(NSString *)name cityNumber:(NSString *)number
{
    self = [super init];
    if (self) {
        _number = number;
        _name = name;
    }
    return self;
}


//指派初始化方法
- (NSString *)description
{
    return [NSString stringWithFormat:@"%@ : %@", _name,_number];
}

- (instancetype)initWithName:(NSString *)name number:(NSString *)number
{
    self = [super init];
    if (self) {
        
    _name = name;
    _number = number;
    }
    return self;
}

//+ (instancetype)zoneWithName:(NSString *)name number:(NSString *)number
//{
//    return [[self alloc] initWithName:name number:number];
//}
//
//- (instancetype)initWithTempCity:(TempCity *)tempCity
//{
//    
//    self = [self initWithName:tempCity.name cityNumber:tempCity.number];
//    
//    
//    return <#expression#>
//    
//    
//    
//    
//    
//    
//    
//}
//
//
//+ (instancetype)zoneWithName:(NSString *)name number:(NSString *)number{
//    return [[self alloc] initWithTempCity:]
//    
//    
//    
//    
//}














@end
